package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_controller_2 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_controller_2() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_21 = new TagInfo("c:get", //$NON-NLS-1$
            1, 21,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_20 = new TagInfo("c:get", //$NON-NLS-1$
            6, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_20 = new TagInfo("c:get", //$NON-NLS-1$
            7, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_20 = new TagInfo("c:get", //$NON-NLS-1$
            8, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_9_20 = new TagInfo("c:get", //$NON-NLS-1$
            9, 20,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$projectName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_format_27_1 = new TagInfo("java:format", //$NON-NLS-1$
            27, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_28_14 = new TagInfo("c:get", //$NON-NLS-1$
            28, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_29_37 = new TagInfo("c:get", //$NON-NLS-1$
            29, 37,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_31_2 = new TagInfo("c:include", //$NON-NLS-1$
            31, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/controller/listEntitysAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_33_2 = new TagInfo("c:include", //$NON-NLS-1$
            33, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/controller/loadEntityAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_37_2 = new TagInfo("c:include", //$NON-NLS-1$
            37, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/controller/newEntityAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_39_2 = new TagInfo("c:include", //$NON-NLS-1$
            39, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/controller/saveEntityAndroid.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_41_2 = new TagInfo("c:include", //$NON-NLS-1$
            41, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/controller/deleteEntityAndroid.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_21 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_21); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_21.setRuntimeParent(null);
        _jettag_c_get_1_21.setTagInfo(_td_c_get_1_21);
        _jettag_c_get_1_21.doStart(context, out);
        _jettag_c_get_1_21.doEnd();
        out.write("_app.controller;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write(NL);         
        out.write("import android.os.Bundle;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import android.os.Message;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_20.setRuntimeParent(null);
        _jettag_c_get_6_20.setTagInfo(_td_c_get_6_20);
        _jettag_c_get_6_20.doStart(context, out);
        _jettag_c_get_6_20.doEnd();
        out.write("_app.R;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_7_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_7_20.setRuntimeParent(null);
        _jettag_c_get_7_20.setTagInfo(_td_c_get_7_20);
        _jettag_c_get_7_20.doStart(context, out);
        _jettag_c_get_7_20.doEnd();
        out.write("_app.data.KeyData;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_8_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_8_20.setRuntimeParent(null);
        _jettag_c_get_8_20.setTagInfo(_td_c_get_8_20);
        _jettag_c_get_8_20.doStart(context, out);
        _jettag_c_get_8_20.doEnd();
        out.write("_app.domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.example.");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_9_20 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_9_20); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_9_20.setRuntimeParent(null);
        _jettag_c_get_9_20.setTagInfo(_td_c_get_9_20);
        _jettag_c_get_9_20.doStart(context, out);
        _jettag_c_get_9_20.doEnd();
        out.write("_app.util.HttpUtil;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.google.gson.Gson;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.google.gson.reflect.TypeToken;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.io.IOException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.net.SocketTimeoutException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.security.cert.CertificateException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.ArrayList;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.HashSet;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.LinkedHashSet;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Timer;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.TimerTask;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import android.os.Handler;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import android.util.Log;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.jetbrains.annotations.NotNull;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import okhttp3.Call;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import okhttp3.Callback;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import okhttp3.Response;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_27_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_27_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_27_1.setRuntimeParent(null);
        _jettag_java_format_27_1.setTagInfo(_td_java_format_27_1);
        _jettag_java_format_27_1.doStart(context, out);
        JET2Writer _jettag_java_format_27_1_saved_out = out;
        while (_jettag_java_format_27_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(" ");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_28_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_28_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_28_14.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_get_28_14.setTagInfo(_td_c_get_28_14);
            _jettag_c_get_28_14.doStart(context, out);
            _jettag_c_get_28_14.doEnd();
            out.write("Controller{");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\tprivate static final String Url = \"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_29_37 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_29_37); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_29_37.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_get_29_37.setTagInfo(_td_c_get_29_37);
            _jettag_c_get_29_37.doStart(context, out);
            _jettag_c_get_29_37.doEnd();
            out.write("\";");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_31_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_31_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_31_2.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_include_31_2.setTagInfo(_td_c_include_31_2);
            _jettag_c_include_31_2.doStart(context, out);
            _jettag_c_include_31_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_33_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_33_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_33_2.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_include_33_2.setTagInfo(_td_c_include_33_2);
            _jettag_c_include_33_2.doStart(context, out);
            _jettag_c_include_33_2.doEnd();
            //
            //	<c:include template="templates/content/{$framework}/java/controller/getEntityAndroid.jet"/>
            //	
            RuntimeTagElement _jettag_c_include_37_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_37_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_37_2.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_include_37_2.setTagInfo(_td_c_include_37_2);
            _jettag_c_include_37_2.doStart(context, out);
            _jettag_c_include_37_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_39_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_39_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_39_2.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_include_39_2.setTagInfo(_td_c_include_39_2);
            _jettag_c_include_39_2.doStart(context, out);
            _jettag_c_include_39_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_41_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_41_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_41_2.setRuntimeParent(_jettag_java_format_27_1);
            _jettag_c_include_41_2.setTagInfo(_td_c_include_41_2);
            _jettag_c_include_41_2.doStart(context, out);
            _jettag_c_include_41_2.doEnd();
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_27_1.handleBodyContent(out);
        }
        out = _jettag_java_format_27_1_saved_out;
        _jettag_java_format_27_1.doEnd();
    }
}
